/*
 * Copyright (c) 2017 5utrip.com. All Rights Reserved.
 */
package com.guoyu.project.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.guoyu.project.model.School;

/**
 * 学校,数据访问类SchoolDao
 *
 * @author: xblibo Wed Jun 21 16:01:34 CST 2017
 * @version 1.0.0
 */
@Repository
public interface SchoolDao {

    /**
     * 保存School实体
     *
     * @param school
     */
    public void save(School school);

    /**
     * 更新School实体
     *
     * @param school
     */
    public void update(School school);

    /**
     * 删除School实体
     *
     * @param schoolId
     */
    public void deleteById(int schoolId);

    /**
     * 根据id获取School实体
     *
     * @param schoolId
     * @return
     */
    public School queryById(int schoolId);

    /**
     * 根据条件获取School记录总数
     *
     * @param params
     * @return
     */
    public int querySchoolCount(Map<String, Object> params);

    /**
     * 根据条件获取分页查询School记录
     *
     * @param params
     * @return
     */
    public List<School> querySchools(Map<String, Object> params);

}